//
//  CNShopCarCommentsView.m
//  BeeQuick_19
//
//  Created by w on 16/9/23.
//  Copyright © 2016年 CN Team. All rights reserved.
//

#import "CNShopCarCommentsView.h"

@implementation CNShopCarCommentsView
- (instancetype)initWithFrame:(CGRect)frame{
    if(self = [super initWithFrame:frame]){
        UILabel *titleLable = [[UILabel alloc]init];
        titleLable.text = @"收货备注";
        titleLable.font = [UIFont systemFontOfSize:14];
        [self addSubview:titleLable];
        
        UITextField *textFiled = [[UITextField alloc]init];
        textFiled.autocapitalizationType = UITextAutocapitalizationTypeNone;
        textFiled.autocorrectionType = UITextAutocorrectionTypeNo;
        textFiled.font = [UIFont systemFontOfSize:14];
        textFiled.borderStyle = UITextBorderStyleRoundedRect;
        textFiled.placeholder = @"可输入100字以内的特殊要求内容";
        [self addSubview:textFiled];
        
        [titleLable mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.equalTo(self).offset(20);
            make.width.mas_equalTo(60);
            make.centerY.equalTo(self);
        }];
        
        [textFiled mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.equalTo(titleLable.mas_trailing).offset(10);
            make.centerY.equalTo(self);
            make.trailing.equalTo(self).offset(-20);
        }];
        
    }
    return self;
}
@end
